<?php

namespace Modules\Shop\Entities;
use Illuminate\Database\Eloquent\Model;
class Article extends Model
{
    protected $fillable = ['title','author','content','thumb','click','iscommend','pid','introduce'];
	public function category(){
		return $this->belongsTo (Category::class,'pid','id');
	}
	public function tag(){
		return $this->hasMany (TagArticle::class,'article_id','id');
	}
}
